package UILayer;
import java.util.Scanner;

public class StorageUI
{
    
    public StorageUI()
    {
        
    }
    
    public void StorageMenu()
    {   
    	boolean exit = false;
        while (!exit) //! means while exit not is true (that is: false)
        {
        	int choise = writeStorageMenu();
        	switch(choise)
        	{
        		case 99: exit = true; break;
        	}//end switch
        }//end while
    }
    
    private int writeStorageMenu()
    {
        //creates an object keyboard to read data from the keyboard
    	Scanner keyboard = new Scanner(System.in);
    	System.out.println(" *** Lager Menu ***");
    	System.out.println(" (99) Tilbage");
    	System.out.print("\n Make your choise: ");
    	int choise = keyboard.nextInt();
    	return choise;
    }
    
}